import request from '@/utils/request'

export function selectAll(data) {
  return request({
    url: '/hospital/all',
    method: 'post',
    data: data
  })
}

export function allId(data) {
  return request({
    url: '/hospital/all/id',
    method: 'post',
    data: data
  })
}

export function add(data) {
  return request({
    url: '/hospital/add',
    method: 'post',
    data: data
  })
}

export function update(data) {
  return request({
    url: '/hospital/update',
    method: 'post',
    data: data
  })
}

export function del(data) {
  return request({
    url: '/hospital/delete',
    method: 'post',
    data: data
  })
}
